package com.hdax.dm.api.order;

import com.hdax.dm.entity.order.Order;
import com.hdax.dm.entity.order.OrderLinkUser;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@Api(tags = "商品订单详情模块")
public interface OrderLinkUserControllerApi {

    @PostMapping(path = "/order/nulls")
    @ApiOperation(value = "查询",notes = "根据订单id查询购票人")
    @ApiImplicitParam(required = true,name = "id")
    List<OrderLinkUser> findLinkUserByOrderId(@RequestParam("id") Long id);

    @PostMapping(path = "/order/deleteOrderLinkUser")
    @ApiOperation(value = "删除",notes = "回滚删除订单联系人")
    Integer deleteOrderLinkUser(@RequestParam("orderId") Long orderId);

}
